From 9165b0f636d06811b62c98aef130fed16f01ec33 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sun, 15 Apr 2007 19:08:51 +0000 Subject: [PATCH] waypt: Be more verbose when stopping because of invalid coordinates. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2740 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/waypt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gpsbabel/waypt.c b/gpsbabel/waypt.c index 7c8f40487..b884eba08 100644 --- a/gpsbabel/waypt.c +++ b/gpsbabel/waypt.c @@ -97,9 +97,11 @@ waypt_add(waypoint *wpt) waypt_ct++; if ((wpt->latitude < -90) || (wpt->latitude > 90.0)) - fatal ("Invalid latitude %f in waypoint.\n", wpt->latitude); + fatal ("Invalid latitude %f in waypoint %s.\n", + wpt->latitude, wpt->shortname ? wpt->shortname : ""); if ((wpt->longitude < -180) || (wpt->longitude > 180.0)) - fatal ("Invalid longitude %f in waypoint.\n", wpt->longitude); + fatal ("Invalid longitude %f in waypoint %s.\n", + wpt->longitude, wpt->shortname ? wpt->shortname : ""); /* * Some input may not have one or more of these types so we -- 2.30.2